efa inventory device threshold-monitor set

Set threshold monitor settings.

Syntax

efa inventory device threshold-monitor set [ --ip device-ips | --fabric fabric-name | --type { cpu | memory | bfd-session | lif | mac-table | vxlan-tunnel | route | host | nexthop | ecmp | hardware-resources } | --actions { all | none | raslog | snmp | loginfo } | --high-limit percentage | --low-limit percentage | --interval seconds | --retry retry-interval | --count max-events | -h, --help ]
Note

Note

--count is valid only when --type of hardware-resources is specified.

Parameters

--actions actions
Specifies the action to take upon exceeding the high-limit or low-limit. Valid actions are all, none, raslog, snmp, and loginfo. Loginfo is only valid for type cpu or memory. [all] Both RASLOG and SNMP trap will be generated. [none] No action will be taken. [raslog] RASLOG will be generated. [snmp] SNMP trap will be generated. [loginfo] Diagnostic data collection along with RASLOG.
--count max-events

Specifies the maximum number of event actions that can be taken in an interval. See interval. A valid value is in the range of 1-60 with Default 4. Valid only for type hardware-resources, which sets the common/shared value for all hardware resource types of bfd-session, lif, mac-table, vxlan-tunnel, route, host, nexthop and ecmp. (Default -1)

--fabric fabric-name
Specifies the name of the fabric.
--high-limit percentage
Specifies the high limit threshold percentage. Valid values for type cpu is 0-95 with Default 50. Valid values for type memory is 0-95 with Default 70. Valid values for types bfd-session/lif/mac-table/vxlan-tunnel is 10-100 with Default 90.
--interval seconds

For type cpu/memory it specifies the polling interval, in seconds after which a sample will be taken. A valid value is in the range of 10-3600 seconds with Default 120 seconds.

For type hardware-resources, which sets the common/shared value for all hardware resource types of bfd-session, lif, mac-table, vxlan-tunnel, route, host, nexthop and ecmp, it specifies the number of notifications within an interval. A valid value is in the range of 30 to 900 seconds with Default 30 seconds.

--ip device-ips
Specifies a comma-separated range of device IP addresses. For example: 10.1.1.13,10.1.1.50,10.1.1.101.
--low-limit percentage
Specifies the low limit threshold percentage. Valid for types bfd-session, lif, mac-table, vxlan-tunnel, route, host, nexthop, and ecmp. Valid values are in the range of 10-99 with Default 70.
--retry retry-interval
Specifies the number of polling interval retries that will be attempted (see --interval) before desired action is taken. Only applicable for --type cpu or memory. Valid values are 1-100 with default 3.
--type type
Specifies the type of threshold being configured. Valid types are cpu, memory, bfd-session, lif, mac-table, vxlan-tunnel, route, host, nexthop, ecmp, and hardware-resources. Default is all.

Examples

This example sets a cpu threshold-monitor to trigger an snmp event when the cpu threshold of 80% is exceeded. The threshold must be exceeded 3 times (retry) for the event to be triggered, which would take 3 minutes before the notification was sent.

efa inventory device threshold-monitor set –-type cpu --ip 10.10.10.153-154 
–-actions snmp -–high-limit 80 --retry 3 

This example sets a mac-table threshold-monitor to trigger an snmp event when the high-limit threshold of 80% is exceeded or the low-limit threshold of 50% is exceeded. Events can be for the threshold exceeding 80% (high) or 50% (low) limits.

efa inventory device threshold-monitor set –-type mac-table --fabric fabric1 
–-actions snmp -–high-limit 80 -–low-limit 50 
This example sets the threshold-monitor hardware-resources interval and count to 60 and 3 respectively. These values apply to the types bfd-session, lif, mac-table, and vxlan-tunnel, route, host, nexthop and ecmp.
efa inventory device threshold-monitor set –-type hardware-resources 
--ip 10.10.10.153-154 --interval 60 --count 3